package cease.command.timeline;

import java.util.Collection;

import cease.butter.TimelineExecutor;
import cease.command.NoOptionCommand;
import cease.console.PrintHelper;
import cease.urs.Session;
import cease.vo.Butter;

/**
 * @author dhf
 */
public class ShowPublicTLCommand extends NoOptionCommand {

    public String getCmdDesc() {
        return "show public timeline";
    }

    public void run(Session session, String[] args) throws Exception {
        Collection<Butter> butters = TimelineExecutor.getInstance()
                .pub(session);
        PrintHelper.printButter(butters);
    }

}
